//
//  PKNavigationView.m
//  PianKe
//
//  Created by ybq on 15/12/25.
//  Copyright © 2015年 B7_Young. All rights reserved.
//

#import "PKNavigationView.h"

@implementation PKNavigationView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        _leftButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _leftButton.frame = CGRectMake(10, 10, 22, 20);
        [self addSubview:_leftButton];
        UIImageView *verticalLine = [[UIImageView alloc] initWithFrame:CGRectMake(45, 0, .5, 44)];
        verticalLine.backgroundColor = [UIColor lightGrayColor];
        [self addSubview:verticalLine];
        
        _title = [[UILabel alloc] initWithFrame:CGRectMake(55, 10, 100, 20)];
        _title.font = [UIFont systemFontOfSize:14];
        [self addSubview:_title];
        
        UIImageView *horizontalLine = [[UIImageView alloc] initWithFrame:CGRectMake(0, 43.5, kWidth, .5)];
        horizontalLine.backgroundColor = [UIColor lightGrayColor];
        [self addSubview:horizontalLine];
    }
    return self;
}


@end
